package com.cxyd.modules.wms.dao;

import com.cxyd.common.dao.BaseDao;
import com.cxyd.modules.wms.entity.TaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 业务记录
 *
 * @author g_Cycle gengruyi01@163.com
 * @since 1.0.0 2023-04-27
 */
@Mapper
public interface TaskDao extends BaseDao<TaskEntity> {
    void procTaskAffirm(@Param("parameter") Map<String, Object> parameters);

    void proTaskCancel(@Param("parameter") Map<String, Object> parameters);

    void proEmptyRegister(@Param("parameter") Map<String, Object> parameters);

    void proEmptyCall(@Param("parameter") Map<String, Object> parameters);

    void procCheckAffirm(@Param("parameter") Map<String, Object> parameters);

    Long existTaskByContId(Long id);

    int selectEmptyCount(String contType,String dvcNo,String contVolume);

    int selectOrderDvcCount(String orderId);

    BigDecimal getStockSafe();
}